<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title><{$env.conf.desktop.background.title}></title>
  <link rel="shortcut icon" href="<{$env.base_full_url}>/favicon.gif" type="image/gif">
  <link href="<{$env.app.res_url}>/css/framework.css" rel="stylesheet">
  <link href="<{$env.app.res_url}>/css/default/login.css" rel="stylesheet">
  <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="login-wrapper">
  <{$top_shopex_cn_call}>
  <header class="login-header">
    <img class="logo" src="<{$env.app.res_url}>/css/default/images/logo@2x.png" height="26" alt="logo">
    <h3 class="logo-desc">
      ECStore
      <{if $ec_deploy.publish_version == 'ecstore' && $ec_deploy.publish_version== 'quick' }>
      快启版
      <{elseif $ec_deploy.publish_version == 'ONex_ECStore_quick' }>
      快启版
      <{elseif $ec_deploy.publish_version == 'ONex_ECStore' ||  $ec_deploy.publish_version == 'ecstore' }>
      标准版
      <{else}>
      专业版
      <{/if}>
    </h3>

    <ul class="navbar-right">
      <li>
        <a href="javascript:addFavorite();">
          <{t}>加入收藏<{/t}>
        </a>
      </li>
      <li>
        <a href="javascript:createShortcut();">
          <{t}>生成快捷方式<{/t}>
        </a>
      </li>
      <li><a href="../" target="_blank">进入商城</a></li>
    </ul>
  </header>
  <div class="form-wrapper">
    <{foreach from=$passports item=item}>
    <{$item.html}>
    <{/foreach}>
  </div>
  <{if $desktop_login_verify}><{$desktop_login_verify}><{/if}>
  <script>
    void
    function() {
      var sURL = location.href;
      var sTitle = document.title;
      addFavorite = function() {
        try {
          window.external.addFavorite(sURL, sTitle);
        } catch (e) {
          try {
            window.sidebar.addPanel(sTitle, sURL, "");
          } catch (e) {
            var c = "ctrl";
            if (navigator.platform.match(/mac/i)) {
              c = "command"
            }
            alert("<{t}>请使用键盘上<{/t}>\n\n" + c + "+D\n\n<{t}>进行收藏操作。<{/t}>");
          }
        }
        return false;
      }
      createShortcut = function() {

        var sname = document.title.replace(/\s/ig, '');
        var surl = location.href;
        document.createshortcuts.furl.value = surl;
        document.createshortcuts.fname.value = sname;
        document.createshortcuts.submit();
      }
    }();
  </script>
  <form action="index.php?app=desktop&ctl=createshortcuts" name="createshortcuts" target="_blank" method="post">
    <input type="hidden" name="furl" value="" />
    <input type="hidden" name="fname" value="" />
  </form>
</body>

</html>